﻿#系统组件模块

project(component)

find_package(Qt5Widgets REQUIRED) # Qt 组件（默认支持核心） 

find_package(Qt5Sql REQUIRED)

include_directories( ${QTDIR}/QtWidgets ${QTDIR}/QtSql
	../SystemConfiguration
	../Algorithm
	../AlgorithmVisual
)

aux_source_directory(. src)
aux_source_directory(./robot robot)
aux_source_directory(./algorithm algorithm)
aux_source_directory(./wcs wcs)
aux_source_directory(./stackplate stackplate)
aux_source_directory(./unstackplate unstackplate)
aux_source_directory(./boxline line)
aux_source_directory(./taskProcess task)
aux_source_directory(./other other)
aux_source_directory(./sql sql)
aux_source_directory(../Algorithm/AlgStackCommon/StackSetting statckSetting)
aux_source_directory(./camera camera)
aux_source_directory(./safe safe)
aux_source_directory(./grating grating)
# 将源代码添加到此项目的可执行文件。
add_library(${PROJECT_NAME} SHARED ${src} ${robot} ${algorithm} ${wcs} 
		${task} ${stackplate} ${unstackplate} ${line} ${other} ${sql} ${statckSetting}
		${safe} ${grating}  )
		#${camera})

target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets Qt5::Sql liblog httpServer SystemJournal SystemConfig pipeline
	RobothandCommunication Camera
)
